import { http } from "@/utils/http";
export function queryRolePage(data: Partial<ShopRoleRequest & PageRequest>) {
  return http.post<MResponse<PageVo<Array<ShopUserVo>>>>("/user/role/queryRolePage", { data });
}

export function addRole(data: ShopRoleAddRequest) {
  return http.post<MResponse>("/user/role/addRole", { data });
}

export function updateRole(data: ShopRoleUpdateRequest) {
  return http.post<MResponse>("/user/role/updateRole", { data });
}

export function delRole(data: ShopRoleDelRequest) {
  return http.post<MResponse>("/user/role/delRole", { data });
}

export function querySelectRoles() {
  return http.get<MResponse<SelectVo[]>>("/user/querySelectRoles");
}
